package com.danbay.framework.db.config;

import com.danbay.framework.db.datasource.DruidDynamicDataSourceConfig;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;

import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;

/**
 * Created by SJG on 2017/10/17.
 * 开启 druid 配置
 */
@Retention(value = java.lang.annotation.RetentionPolicy.RUNTIME)
@Target(value = {java.lang.annotation.ElementType.TYPE})
@Documented
@Import({DruidDynamicDataSourceConfig.class})
@Configuration
public @interface EnableDruid {
}